﻿@model B4Deal.Models.KHUYENMAI
@{
    ViewBag.Title = "DealDetails";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<div class="heading">
    <h1>
        Deal Detail</h1>
    <div class="buttons">
        <a class="button" onclick=  @Html.ActionLink("Edit", "DealEdit", new { id = Model.MaKM })
        </a><a class="button" onclick= @Html.ActionLink("Cancel", "Deals")</a>
    </div>
    <!--End Buttons-->
</div>
<div class="ContentSectionWrapper SecondaryColor">
    <div class="ContentSection ui-widget">
        <div class="ContentSectionHeader ui-widget-header ui-corner-all">
            Business
        </div>
    </div>
</div>
<!--End Heading-->
<fieldset>
    <legend></legend>
    <div class="ContentSectionWrapper StandardColor LitePrimaryColor" style="margin-left: 0px;
        padding: 1px;">
        <div class="ContentSection ui-widget-content ui-corner-all" style="padding: 10px;">
            <table cellspacing="1" cellpadding="0" border="0" style="margin: 0px; width: 100%;
                border-collapse: separate;">
                <tbody>
                    <tr>
                        <td class="borderRight" style="background-color: White; padding-left: 6px; padding-top: 6px;
                            padding-bottom: 6px; vertical-align: top; width: 26%;">
                            <a href="/Home/DetailDeal/2001" title="Apple Spa">
                                <img width="221" height="149" src="../../Content/Layout/Images/deals/@Model.HinhAnh" alt="@Model.HinhAnh" title="@Model.HinhAnh" />
                            </a>
                        </td>
                        <td class="borderRight" style="background-color: White; width: 44%; padding-top: 10px;
                            padding-left: 10px; padding-right: 8px; vertical-align: top">
                            <table width="100%" cellspacing="0" cellpadding="4" border="0">
                                <tbody>
                                    <tr>
                                        <td class="LitePrimaryColor" style="text-align: left; padding-bottom: 5px; font-weight: bold;">
                                            <a  href="#" alt="@Model.TenKM">@Model.TenKM</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="_content">
                                            <ul>
                                                @{
                                                    string[] sub = Model.DiemNoiBat.Split('-');
                                                    foreach (var str in sub)
                                                    {
                                                    <li>
                                                        @str
                                                    </li> 
                                                    }
                                                }
                                            </ul>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        @{var per = (@Model.DonGiaCu - @Model.DonGiaMoi) * 100 / @Model.DonGiaCu;}
                        <td style="background-color: White; padding-top: 15px; padding-left: 10px; vertical-align: top;
                            width: 30%;">
                            <span id="pr_lbDatePost" class="_lblBold" style="float: left; padding-left: 10px">Date
                                Post: </span><span id="pr_datePost" style="float: right; padding-right: 25px">@Model.BatDauKM</span>
                            <br>
                            <span id="pr_lbDateEnd" class="_lblBold" style="float: left; padding-left: 10px">Date
                                End: </span><span id="pr_dateEnd" style="float: right; padding-right: 25px">@Model.KetThucKM</span>
                            <br>
                            <span id="pr_lbStatus" class="_lblBold" style="float: left; padding-left: 10px">Status:
                            </span><span id="pr_lbStatus" style="float: right; padding-right: 25px"><b>@Model.TinhTrang</b></span>
                            <br>
                            <span id="pr_lbquantity" class="_lblBold" style="float: left; padding-left: 10px">Old
                                Price: </span><span id="pr_quantity" style="float: right; padding-right: 25px">@Model.DonGiaCu</span>
                            <br>
                            <span id="pr_lbUnitPrice" class="_lblBold" style="float: left; padding-left: 10px">New
                                Price: </span><span id="pr_UnitPrice" style="float: right; padding-right: 25px">@Model.DonGiaMoi</span>
                            <br>
                            <span id="pr_lbPromotion" class="_lblBold" style="float: left; padding-left: 10px">Promotion:
                            </span><span id="pr_promotion" style="float: right; padding-right: 25px">@per <strong>
                                %</strong> <b>/</b><sub> pr</sub></span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</fieldset>
